package com.espirit.eap.manager;

import com.espirit.eap.annotation.ModelDisplayProperty;

@ModelDisplayProperty(value="code")
public enum MessageViewType {
	Normal(0),Deleted(1),All(2);
	int value;
	private MessageViewType(int value){
		this.value = value;
	}
	public int toInt(){
		return value;
	}
	public MessageViewType fromInt(int value){
		switch(value){
		case 0: return Normal;
		case 1: return Deleted;
		case 2: return All;
		default : return Normal;
		}
	}
}
